package com.jyx.framework.domain.filesystem.response;

import com.jyx.framework.model.response.ResultCode;

public enum FileSystemCode implements ResultCode {
    FILESYSTEM_FILEISNULL(false,40002,"上传文件为空"),
    FILESYSTE_INITEROOR(false,40001,"文件上传初始化出错");

    boolean success;
    int code;
    String message;

    FileSystemCode(boolean success, int code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

    @Override
    public boolean success() {
        return success;
    }

    @Override
    public int code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
